using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace Pbdms.NetworkDealer
{
    /// <summary>
    /// define the format for a search result object
    /// </summary>
    [System.Xml.Serialization.XmlInclude(typeof(Common.DataObject.ResultItem))]
    public class SearchResult
    {
        /// <summary>
        /// ip address of the responder
        /// </summary>
        public String ipAddResponder;  
        /// <summary>
        /// id of the request
        /// </summary>
        public int requestId;
        /// <summary>
        /// list of the results
        /// </summary>
        public System.Collections.ArrayList arlResult;
        public SearchResult() { }
        /// <summary>
        /// create an instance
        /// </summary>
        /// <param name="ipAddResponder"></param>
        /// <param name="requestId"></param>
        /// <param name="arlResult"></param>
        public SearchResult(String ipAddResponder, int requestId, System.Collections.ArrayList arlResult)
        {
            this.ipAddResponder = ipAddResponder;
            this.requestId = requestId;
            this.arlResult = arlResult;
        }

    }
}
